using System.ComponentModel.DataAnnotations;
 using System.Data.Entity.ModelConfiguration;
using SalesPages.DomainModel;
namespace SalesPages.EntityFrameworkRepository.Mapping
{
    public class HearAboutMap : EntityTypeConfiguration<HearAbout>
    {
        public HearAboutMap()
        {
            // Primary Key
            this.HasKey(t => t.Id);

            // Properties
            this.Property(t => t.HearAbout1)
                .HasMaxLength(30);

            // Table & Column Mappings
            this.ToTable("HearAbout");
            this.Property(t => t.Id).HasColumnName("Id");
            this.Property(t => t.HearAbout1).HasColumnName("HearAbout");
            this.Property(t => t.HBlurb).HasColumnName("HBlurb");
            this.Property(t => t.isactive).HasColumnName("isactive");
        }
    }
}
